﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharedGenomics.Domain
{
    public class MarkerFilterStatus
    {
        public MarkerFilterStatus(string snpName)
        {
            this.SnpName = snpName;
            this.FilterReason = MarkerFilterReason.NotFiltered;
        }

        public MarkerFilterStatus(string snpName, MarkerFilterReason reason, double threshold)
        {
            this.SnpName = snpName;
            this.FilterReason = reason;
            this.Threshold = threshold;
        }

        public string SnpName { get; private set; }
        public MarkerFilterReason FilterReason { get; private set; }
        public double? Threshold { get; private set; }
        public string FilterDisplayReason
        {
            get
            {
                return this.FilterReason == MarkerFilterReason.NotFiltered
                    ? null
                    : this.FilterReason.ToString();
            }
        }
    }
}
